package com.logcenter.restful;

import org.springframework.web.client.RestTemplate;

public class ConsumRestful {

	public static void main(String[] args) {
		RestTemplate restTemplate = new RestTemplate();

		String consumeJSONString = restTemplate.getForObject(
				"http://localhost:8080/SampleRESTFulService/consumeJSONString",
				String.class);
		System.out.println("JSON String: " + consumeJSONString);
	}

}
